import service from '@/utils/request'

// @Tags AccessoryNumberSetting
// @Summary 创建配件编号配置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.AccessoryNumberSetting true "创建配件编号配置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /accessoryNumberSetting/createAccessoryNumberSetting [post]
export const createAccessoryNumberSetting = (data) => {
  return service({
    url: '/accessoryNumberSetting/createAccessoryNumberSetting',
    method: 'post',
    data
  })
}

// @Tags AccessoryNumberSetting
// @Summary 删除配件编号配置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.AccessoryNumberSetting true "删除配件编号配置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /accessoryNumberSetting/deleteAccessoryNumberSetting [delete]
export const deleteAccessoryNumberSetting = (params) => {
  return service({
    url: '/accessoryNumberSetting/deleteAccessoryNumberSetting',
    method: 'delete',
    params
  })
}

// @Tags AccessoryNumberSetting
// @Summary 批量删除配件编号配置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除配件编号配置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /accessoryNumberSetting/deleteAccessoryNumberSetting [delete]
export const deleteAccessoryNumberSettingByIds = (params) => {
  return service({
    url: '/accessoryNumberSetting/deleteAccessoryNumberSettingByIds',
    method: 'delete',
    params
  })
}

// @Tags AccessoryNumberSetting
// @Summary 更新配件编号配置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.AccessoryNumberSetting true "更新配件编号配置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /accessoryNumberSetting/updateAccessoryNumberSetting [put]
export const updateAccessoryNumberSetting = (data) => {
  return service({
    url: '/accessoryNumberSetting/updateAccessoryNumberSetting',
    method: 'put',
    data
  })
}

// @Tags AccessoryNumberSetting
// @Summary 用id查询配件编号配置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.AccessoryNumberSetting true "用id查询配件编号配置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /accessoryNumberSetting/findAccessoryNumberSetting [get]
export const findAccessoryNumberSetting = (params) => {
  return service({
    url: '/accessoryNumberSetting/findAccessoryNumberSetting',
    method: 'get',
    params
  })
}

// @Tags AccessoryNumberSetting
// @Summary 分页获取配件编号配置列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取配件编号配置列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /accessoryNumberSetting/getAccessoryNumberSettingList [get]
export const getAccessoryNumberSettingList = (params) => {
  return service({
    url: '/accessoryNumberSetting/getAccessoryNumberSettingList',
    method: 'get',
    params
  })
}